package pl.edu.mimuw.irs.rcp.persistence;

import java.io.InputStream;
import java.io.OutputStream;

public interface IPersistence<T> {
	
	public T loadFromStream(InputStream stream) throws Exception;
	public void writeToStream(T object, OutputStream stream) throws Exception;

	public InputStream objectAsInputStream(T object) throws Exception;
	
}
